package com.zt.dev.numbersimulation.dao;

import com.zt.dev.numbersimulation.pojo.NumberSimulation;
import com.zt.dev.numbersimulation.pojo.Performance;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName NumberSimulationRepository
 * @Description TODO
 * @Author 小张学长
 * @Date 2020/2/6 15:40
 **/
@Repository
public interface NumberSimulationRepository {

    /**
     * 数字仿真模型信息注册
     * @param simulation
     * @return
     */
    boolean addNumberSimulation(NumberSimulation simulation);

    /**
     * 新增装备性能参数
     * @param performance
     * @return
     */
    boolean addPerformance(Performance performance);

    /**
     * 修改仿真模型信息注册
     * @param simulation
     * @return
     */
    int updateNumberSimulation(NumberSimulation simulation);

    /**
     * 查询仿真模型名称
     * @return
     */
    List<NumberSimulation> getSimulationByMdelName();

    /**
     * 根据模型id获取模型主要性能
     * @param numberId
     * @return
     */
    List<Performance> getPerformanceByNumberId(@Param("numberId")int numberId);


    /**
     * 判断仿真模型名称是否存在
     * @param modelName
     * @return
     */
    NumberSimulation selSimulationByMdelName(@Param("modelName")String modelName);









}
